package com.lyq.bean;

public class Major {
    private int id;
    private String name;

    // 默认构造函数
    public Major() {}

    // 带参数的构造函数
    public Major(int id, String name) {
        this.id = id;
        this.name = name;
    }

    // Getter和Setter方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
